using(['pc/js/mod/ucenter/vue-account-index',
    'pc/js/mod/ucenter/vue-account-nick',
    'pc/js/mod/ucenter/vue-account-base',
    'pc/js/mod/ucenter/vue-account-safe',
    'pc/js/mod/ucenter/vue-account-credit',
    'pc/js/mod/ucenter/vue-account-creditlog'], (VueAccountIndex, VueAccountNick, VueAccountBase, VueAccountSafe, VueAccountCredit, VueAccountCreditLog) => {

const strUid = USER_SDK.getInstance().getStrUid();

const router = new VueRouter({
    mode: 'hash',
    routes: [
        {
            path: '/',
            component: VueAccountIndex,
            props: {strUid: strUid}
        },
        {
            path: '/nick',
            component: VueAccountNick,
            props: {strUid: strUid}
        },
        {
            path: '/base',
            component: VueAccountBase,
            props: {strUid: strUid}
        },
        {
            path: '/safe',
            component: VueAccountSafe,
            props: {strUid: strUid}
        },
        {
            path: '/credit',
            component: VueAccountCredit,
            props: {strUid: strUid}
        },
        {
            path: '/creditlog',
            component: VueAccountCreditLog,
            props: {strUid: strUid}
        }
    ]
});

new Vue({
    router: router,
    template:
`<div data-role="app" class="x-wrapper" style="margin-top: 56px;">
    <div class="uc-left x-pullleft">
        <div class="uc-left-nav-wrapper">
            <h3>个人中心</h3>
            <ul class="uc-left-nav">
                <li><router-link to="/">首页</router-link></li>
                <li><router-link to="nick">修改昵称</router-link></li>
                <li><router-link to="base">基本信息</router-link></li>
                <li><router-link to="safe">安全</router-link></li>
                <li><router-link to="credit">财富</router-link></li>
                <li><router-link to="creditlog">日志</router-link></li>
            </ul>
        </div>
    </div>
    <div class="uc-right x-pullright"><router-view></router-view></div>
    <div class="x-clear"></div>
</div>`
}).$mount('#app');

});
